import Main from './page/Main';
import Login from './page/Login'
import Seeds  from './page/Seeds';
import Upload  from './page/Upload';
import Message  from './page/Message';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import SeedDetailPage from './page/Seed';
import Profile from "./page/Profile";
import Community from "./page/Community";
import PostDetail from "./page/PostDetail";
import AdminPage from "./page/Admin";
import Store from './page/Store';

const navigationItems = [
  { label: '首页', path: '/' },
  { label: '种子列表', path: '/seeds' },
  { label: '上传种子', path: '/upload' },
  { label: '消息中心', path: '/message' },
  { label: '社区中心', path: '/community' },
  { label: '用户中心', path: '/profile' },
  { label: '商店', path: '/store' },
  { label: '管理中心', path: '/admin' }
];
function App() {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<Main />} />
        <Route path="/login" element={<Login />} />
        <Route path="/seeds" element={<Seeds />} />
        <Route path="/upload" element={<Upload />} />
        <Route path="/message" element={<Message />} />
        <Route path="/seed/:seedId" element={<SeedDetailPage />} />
        <Route path="/profile" element={<Profile />} />
        <Route path="/community" element={<Community />} />
        <Route path="/post/:postId" element={<PostDetail />} />
        <Route path="/admin" element={<AdminPage />} />
        <Route path="/store" element={<Store />} />
      </Routes>
    </Router>
  );
}
export { navigationItems };
export default App;